package com.cnvai.cms.javabean.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class DzbmbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DzbmbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDzidIsNull() {
            addCriterion("DZID is null");
            return (Criteria) this;
        }

        public Criteria andDzidIsNotNull() {
            addCriterion("DZID is not null");
            return (Criteria) this;
        }

        public Criteria andDzidEqualTo(BigDecimal value) {
            addCriterion("DZID =", value, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidNotEqualTo(BigDecimal value) {
            addCriterion("DZID <>", value, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidGreaterThan(BigDecimal value) {
            addCriterion("DZID >", value, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("DZID >=", value, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidLessThan(BigDecimal value) {
            addCriterion("DZID <", value, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("DZID <=", value, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidIn(List<BigDecimal> values) {
            addCriterion("DZID in", values, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidNotIn(List<BigDecimal> values) {
            addCriterion("DZID not in", values, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DZID between", value1, value2, "dzid");
            return (Criteria) this;
        }

        public Criteria andDzidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DZID not between", value1, value2, "dzid");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("CODE is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("CODE is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("CODE =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("CODE <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("CODE >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("CODE >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("CODE <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("CODE <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("CODE like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("CODE not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("CODE in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("CODE not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("CODE between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("CODE not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andDzmcIsNull() {
            addCriterion("DZMC is null");
            return (Criteria) this;
        }

        public Criteria andDzmcIsNotNull() {
            addCriterion("DZMC is not null");
            return (Criteria) this;
        }

        public Criteria andDzmcEqualTo(String value) {
            addCriterion("DZMC =", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcNotEqualTo(String value) {
            addCriterion("DZMC <>", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcGreaterThan(String value) {
            addCriterion("DZMC >", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcGreaterThanOrEqualTo(String value) {
            addCriterion("DZMC >=", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcLessThan(String value) {
            addCriterion("DZMC <", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcLessThanOrEqualTo(String value) {
            addCriterion("DZMC <=", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcLike(String value) {
            addCriterion("DZMC like", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcNotLike(String value) {
            addCriterion("DZMC not like", value, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcIn(List<String> values) {
            addCriterion("DZMC in", values, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcNotIn(List<String> values) {
            addCriterion("DZMC not in", values, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcBetween(String value1, String value2) {
            addCriterion("DZMC between", value1, value2, "dzmc");
            return (Criteria) this;
        }

        public Criteria andDzmcNotBetween(String value1, String value2) {
            addCriterion("DZMC not between", value1, value2, "dzmc");
            return (Criteria) this;
        }

        public Criteria andPymqpIsNull() {
            addCriterion("PYMQP is null");
            return (Criteria) this;
        }

        public Criteria andPymqpIsNotNull() {
            addCriterion("PYMQP is not null");
            return (Criteria) this;
        }

        public Criteria andPymqpEqualTo(String value) {
            addCriterion("PYMQP =", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpNotEqualTo(String value) {
            addCriterion("PYMQP <>", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpGreaterThan(String value) {
            addCriterion("PYMQP >", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpGreaterThanOrEqualTo(String value) {
            addCriterion("PYMQP >=", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpLessThan(String value) {
            addCriterion("PYMQP <", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpLessThanOrEqualTo(String value) {
            addCriterion("PYMQP <=", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpLike(String value) {
            addCriterion("PYMQP like", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpNotLike(String value) {
            addCriterion("PYMQP not like", value, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpIn(List<String> values) {
            addCriterion("PYMQP in", values, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpNotIn(List<String> values) {
            addCriterion("PYMQP not in", values, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpBetween(String value1, String value2) {
            addCriterion("PYMQP between", value1, value2, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymqpNotBetween(String value1, String value2) {
            addCriterion("PYMQP not between", value1, value2, "pymqp");
            return (Criteria) this;
        }

        public Criteria andPymjpIsNull() {
            addCriterion("PYMJP is null");
            return (Criteria) this;
        }

        public Criteria andPymjpIsNotNull() {
            addCriterion("PYMJP is not null");
            return (Criteria) this;
        }

        public Criteria andPymjpEqualTo(String value) {
            addCriterion("PYMJP =", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpNotEqualTo(String value) {
            addCriterion("PYMJP <>", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpGreaterThan(String value) {
            addCriterion("PYMJP >", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpGreaterThanOrEqualTo(String value) {
            addCriterion("PYMJP >=", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpLessThan(String value) {
            addCriterion("PYMJP <", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpLessThanOrEqualTo(String value) {
            addCriterion("PYMJP <=", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpLike(String value) {
            addCriterion("PYMJP like", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpNotLike(String value) {
            addCriterion("PYMJP not like", value, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpIn(List<String> values) {
            addCriterion("PYMJP in", values, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpNotIn(List<String> values) {
            addCriterion("PYMJP not in", values, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpBetween(String value1, String value2) {
            addCriterion("PYMJP between", value1, value2, "pymjp");
            return (Criteria) this;
        }

        public Criteria andPymjpNotBetween(String value1, String value2) {
            addCriterion("PYMJP not between", value1, value2, "pymjp");
            return (Criteria) this;
        }

        public Criteria andQyztIsNull() {
            addCriterion("QYZT is null");
            return (Criteria) this;
        }

        public Criteria andQyztIsNotNull() {
            addCriterion("QYZT is not null");
            return (Criteria) this;
        }

        public Criteria andQyztEqualTo(String value) {
            addCriterion("QYZT =", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotEqualTo(String value) {
            addCriterion("QYZT <>", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztGreaterThan(String value) {
            addCriterion("QYZT >", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztGreaterThanOrEqualTo(String value) {
            addCriterion("QYZT >=", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztLessThan(String value) {
            addCriterion("QYZT <", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztLessThanOrEqualTo(String value) {
            addCriterion("QYZT <=", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztLike(String value) {
            addCriterion("QYZT like", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotLike(String value) {
            addCriterion("QYZT not like", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztIn(List<String> values) {
            addCriterion("QYZT in", values, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotIn(List<String> values) {
            addCriterion("QYZT not in", values, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztBetween(String value1, String value2) {
            addCriterion("QYZT between", value1, value2, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotBetween(String value1, String value2) {
            addCriterion("QYZT not between", value1, value2, "qyzt");
            return (Criteria) this;
        }

        public Criteria andSyhIsNull() {
            addCriterion("SYH is null");
            return (Criteria) this;
        }

        public Criteria andSyhIsNotNull() {
            addCriterion("SYH is not null");
            return (Criteria) this;
        }

        public Criteria andSyhEqualTo(BigDecimal value) {
            addCriterion("SYH =", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhNotEqualTo(BigDecimal value) {
            addCriterion("SYH <>", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhGreaterThan(BigDecimal value) {
            addCriterion("SYH >", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SYH >=", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhLessThan(BigDecimal value) {
            addCriterion("SYH <", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SYH <=", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhIn(List<BigDecimal> values) {
            addCriterion("SYH in", values, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhNotIn(List<BigDecimal> values) {
            addCriterion("SYH not in", values, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SYH between", value1, value2, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SYH not between", value1, value2, "syh");
            return (Criteria) this;
        }

        public Criteria andFjidIsNull() {
            addCriterion("FJID is null");
            return (Criteria) this;
        }

        public Criteria andFjidIsNotNull() {
            addCriterion("FJID is not null");
            return (Criteria) this;
        }

        public Criteria andFjidEqualTo(BigDecimal value) {
            addCriterion("FJID =", value, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidNotEqualTo(BigDecimal value) {
            addCriterion("FJID <>", value, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidGreaterThan(BigDecimal value) {
            addCriterion("FJID >", value, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("FJID >=", value, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidLessThan(BigDecimal value) {
            addCriterion("FJID <", value, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("FJID <=", value, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidIn(List<BigDecimal> values) {
            addCriterion("FJID in", values, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidNotIn(List<BigDecimal> values) {
            addCriterion("FJID not in", values, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FJID between", value1, value2, "fjid");
            return (Criteria) this;
        }

        public Criteria andFjidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FJID not between", value1, value2, "fjid");
            return (Criteria) this;
        }

        public Criteria andQdzmcIsNull() {
            addCriterion("QDZMC is null");
            return (Criteria) this;
        }

        public Criteria andQdzmcIsNotNull() {
            addCriterion("QDZMC is not null");
            return (Criteria) this;
        }

        public Criteria andQdzmcEqualTo(String value) {
            addCriterion("QDZMC =", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcNotEqualTo(String value) {
            addCriterion("QDZMC <>", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcGreaterThan(String value) {
            addCriterion("QDZMC >", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcGreaterThanOrEqualTo(String value) {
            addCriterion("QDZMC >=", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcLessThan(String value) {
            addCriterion("QDZMC <", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcLessThanOrEqualTo(String value) {
            addCriterion("QDZMC <=", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcLike(String value) {
            addCriterion("QDZMC like", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcNotLike(String value) {
            addCriterion("QDZMC not like", value, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcIn(List<String> values) {
            addCriterion("QDZMC in", values, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcNotIn(List<String> values) {
            addCriterion("QDZMC not in", values, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcBetween(String value1, String value2) {
            addCriterion("QDZMC between", value1, value2, "qdzmc");
            return (Criteria) this;
        }

        public Criteria andQdzmcNotBetween(String value1, String value2) {
            addCriterion("QDZMC not between", value1, value2, "qdzmc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}